
<template>
  <div class="back" @click="goback">
    <slot>
      <van-icon name="revoke" color="#ee0a24" size="20" />
    </slot>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from "vue-router";

const router = useRouter();
const goback = () => {
  router.back();
};
</script>